.PHONY:all
all:myexec mycmd test  

test:test.c
	gcc -o $@ $^ -std=c99 

mycmd:mycmd.cpp
	g++ -o $@ $^
myexec:myexec.c
	gcc -o $@ $^
.PHONY:clean
clean:
	rm -f myexec mycmd test 

